﻿using System;
using System.Collections.Generic;

namespace VisionCloud.Domain.DtoModel.Ms
{
    /// <summary>
    /// 工效分析Dto
    /// </summary>
    public class MsSPersonnelEfficiencyDto
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 整体数据
        /// </summary>
        public SummaryInfo SummaryInfos { get; set; }

        /// <summary>
        /// 月度明细数据
        /// </summary>
        public List<DetailInfo> MonthlyInfos { get; set; } = new List<DetailInfo>();

        /// <summary>
        /// 日度明细数据
        /// </summary>
        public List<DetailInfo> DailyInfos { get; set; } = new List<DetailInfo>();
    }

    public class SummaryInfo
    {
        /// <summary>
        /// 昨日总面积
        /// </summary>
        public string YesterdayAreas { get; set; }

        /// <summary>
        /// 昨日总层数
        /// </summary>
        public string YesterdayFloors { get; set; }

        /// <summary>
        /// 总测量面积
        /// </summary>
        public string TotalAreas { get; set; }

        /// <summary>
        /// 总测量楼层
        /// </summary>
        public string TotalFloors { get; set; }

        /// <summary>
        /// 总测量工作日
        /// </summary>
        public string WorkDays { get; set; }
    }

    /// <summary>
    /// 工效明细
    /// </summary>
    public class DetailInfo
    {
        /// <summary>
        /// 年
        /// </summary>
        public string Year { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        public string Month { get; set; }

        /// <summary>
        /// 测量时间：月或日
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 测量功效：面积
        /// </summary>
        public string Areas { get; set; }

        /// <summary>
        /// 测量功效：楼层
        /// </summary>
        public string Floors { get; set; }
    }

    /// <summary>
    /// 员工功效Dto
    /// </summary>
    public class MsSPersonnelDto
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 账号名称
        /// </summary>
        public string UserAccount { get; set; }

        /// <summary>
        /// 测量总面积
        /// </summary>
        public string TotalAreas { get; set; }

        /// <summary>
        /// 楼栋号
        /// </summary>
        public string Building { get; set; }

        /// <summary>
        /// 测量总楼层数
        /// </summary>
        public string TotalFloors { get; set; }
    }

    /// <summary>
    /// 设备工效信息
    /// </summary>
    public class DeviceEfficiencyDto
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public string DeviceNumber { get; set; }

        /// <summary>
        /// 设备Id
        /// </summary>
        public string DeivceGuid { get; set; }

        /// <summary>
        /// 搜索区间内有数据上传时间
        /// </summary>
        public DateTime DateStr { get; set; }

        /// <summary>
        /// 有数据上传年
        /// </summary>
        public int Year { get; set; }

        /// <summary>
        /// 有数据上传月
        /// </summary>
        public int Month { get; set; }

        /// <summary>
        /// 有数据上传天
        /// </summary>
        public int Day { get; set; }

        /// <summary>
        /// 总时间
        /// </summary>
        public int TotalDays { get; set; }
    }
}